# -*- coding:utf-8 -*- #
from propeller.notifiter import Notifiter
#from twisted.internet import reactor, defer


def propelling(transport):

    if transport.connected:
        notify = Notifiter()
        if notify.register(transport):
            print 'send_history'
            notify.send_history()
    else:
        Notifiter.unregister(transport)
